package cn.itcast.bos.base.service;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.itcast.bos.domain.base.Area;
import cn.itcast.bos.domain.base.SubArea;
import cn.itcast.bos.domain.delivery.Order;
import cn.itcast.crm.domain.Customer;

@Path("/")
@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_ATOM_XML})
@Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_ATOM_XML})
public interface SubAreaService {

	void uploadsubareaExcel(List<SubArea> list);

	@Path("/subArea")
	@GET
	public SubArea findByArea();

	SubArea getSubArea(Area sendArea,
			Order order);

	Page<SubArea>  page(Pageable pageable);
}
